package com.emmy.walnut.util;
/*
import com.emmy.walnut.constant.ServiceApi;

import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;

public class RetrofitHelper {

    Retrofit retrofit = new Retrofit.Builder()
            .baseUrl(ServiceApi.baseURL)
            .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
            .addConverterFactory(GsonConverterFactory.create())
            .build();

    ServiceApi serviceApi = retrofit.create(ServiceApi.class);

    private static RetrofitHelper retrofitHelper;

    public static RetrofitHelper getInstance(){
        if (retrofitHelper==null){
            synchronized (RetrofitHelper.class){
                if (retrofitHelper==null)
                    retrofitHelper = new RetrofitHelper();
            }
        }
        return retrofitHelper;
    }

    private RetrofitHelper(){}

    public Retrofit getRetrofit(){
        return retrofit;
    }

    public ServiceApi serviceApi(){
        return serviceApi;
    }
}*/
